piecewise function continuous